package com.hqyj.service;

import com.hqyj.exception.R;
import com.hqyj.pojo.BuyCar;
import com.hqyj.pojo.Item;

import javax.servlet.http.HttpServletRequest;

public interface BuyCarService {
    //添加购物车
    R addBuyCar(Item item, HttpServletRequest request);
    //展示购物车
    R showBuyCar(HttpServletRequest request);
    //删除
    R deleteBuyCar(Integer goodsId,HttpServletRequest request);
    //购物车修改
    R updateBuyCar(BuyCar buyCar, HttpServletRequest request);
    //清空购物车
    R clearBuyCar(HttpServletRequest request);
}
